//
//  PlayMusicHeaderView.m
//  My_PopMusic
//
//  Created by 赵诣 on 15/8/13.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "PlayMusicHeaderView.h"

@implementation PlayMusicHeaderView


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self create];
    }
    return self;
}

- (void)create
{
    self.button = [UIButton buttonWithType:(UIButtonTypeCustom)];
    self.button.frame = CGRectMake(10, 0, 50, 44);
    [self addSubview:self.button];
    [self.button setImage:[UIImage imageNamed:@"musicB"] forState:(UIControlStateNormal)];
    
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(70, 10, SCREENWIDTH - 140, 34)];
    self.label.backgroundColor = [UIColor clearColor];
    self.label.textColor = [UIColor whiteColor];
    self.label.font = [UIFont systemFontOfSize:20];
    self.label.textAlignment = NSTextAlignmentCenter;
    [self addSubview:self.label];

}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
